package com.bkgy.modular.calsidata.controller;

import com.alibaba.fastjson.JSONObject;
import com.bkgy.modular.calsidata.service.TbDsjC621EdgePassTimeService;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/timeSeries")
public class TbDjsC621EdgePassTimeController {
    @Resource
    TbDsjC621EdgePassTimeService tbDsjC621EdgePassTimeService;

    /**
     * 获取时间序列
     * @param json
     * @return
     */
    @PostMapping("/getTimeSeries")
    public ResultData getTimeSeriesData(@RequestBody JSONObject json){
        return tbDsjC621EdgePassTimeService.getTimeSeriesData(json);
    }

    /**
     *  获取2130时间序列
     * @param json
     * @return
     */
    @PostMapping("/get2130TimeSeries")
    public ResultData get2130TimeSeriesData(@RequestBody JSONObject json) {
        return tbDsjC621EdgePassTimeService.get2130TimeSeriesData(json);
    }
}
